﻿using AutoMapper;
using B.S.Medical.Api.Write.Application.Command.Department;
using B.S.Medical.Api.Write.Application.Command.Doctor;
using B.S.Medical.Api.Write.Application.Command.Patient;
using B.S.Medical.Api.Write.Application.Command.Register;
using B.S.Medical.Domain.Department;
using B.S.Medical.Domain.Doctor;
using B.S.Medical.Domain.Medical;

namespace B.S.Medical.Api.Write.Files
{
    public class MapperProfiles : Profile
    {
        public MapperProfiles()
        {
            // 预约须知映射
            CreateMap<AddAppointmentNoticeCommand, AppointmentNoticeModel>().ReverseMap();
            //科室新增
            CreateMap<AddDepartmentCommand, ManageModel>().ReverseMap();
            //科室修改
            CreateMap<UpdateDepartmentCommand, ManageModel>().ReverseMap();
            //医生
            CreateMap<CreateDoctorCommand, DoctorModel>().ReverseMap();
            //挂号
            CreateMap<AddRegisterCommand, RegisterModel>().ReverseMap();
            //就诊人添加
            CreateMap<AddPatientCommand, PatientModel>().ReverseMap();
        }
    }
}
